package com.gtallinone.client;

import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.HorizontalSplitPanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.TextBox;

public class MapPanel extends VerticalPanel{
	public MapPanel(){
		setSize("100%", "100%");
		
		HorizontalPanel hp = new HorizontalPanel();
		hp.setBorderWidth(5);
		hp.setSize("100%","100%");
		add(hp);


		Image image = new Image("https://www-old.math.gatech.edu/hsmc/maps/GTcampus.gif");
		hp.add(image);
		image.setSize("100%", "100%");
		
		VerticalPanel vp = new VerticalPanel();
		hp.add(vp);
		
		Label lblstart = new Label("Starting location:");
		
		TextBox start = new TextBox();
		Label lblDestination = new Label("Destination:");
		TextBox destination = new TextBox();
		Button findPath = new Button("Do something");
		findPath.setText("Find Path");
		vp.add(lblstart);
		vp.add(start);
		vp.add(lblDestination);
		vp.add(destination);
		vp.add(findPath);
		findPath.setSize("100%", "100%");
	}
}
